Authentication
Author: David Li davidli012345@gmail.com
Execution cost: less than 220 gas
Deployment cost: less than 179200 gas
Combined cost: less than 179420 gas
Events
UserCreated(address,bytes32,uint256)
Execution cost: No bound available
Params:
- _address of type
address
- _name of type
bytes32
- _created_at of type
uint256
UserDeleted(address)
Execution cost: No bound available
Params:
- _address of type
address
UserUpdated(address,bytes32)
Execution cost: No bound available
Params:
- _address of type
address
- _name of type
bytes32
Methods
allUsers(uint256)
Execution cost: less than 765 gas
Attributes: constant
Params:
- param_0 of type
uint256
Returns:
- output_0 of type
address
destroy()
destroy existing username
Execution cost: less than 11678 gas
login()
Execution cost: less than 839 gas
Attributes: constant
Returns:
username
- output_0 of type
bytes32
signup(bytes32)
checks if user exists If yes return user name If no, check if name was sent If yes, create and return user
Execution cost: less than 83052 gas
Attributes: payable
Params:
-
name of type
bytes32
the username to be created.
Returns:
username of created user
- output_0 of type
bytes32
update(bytes32)
updating user name
Execution cost: less than 22633 gas
Attributes: payable
Params:
-
name of type
bytes32
updating username
Returns:
updated username
- output_0 of type
bytes32